package com.xxx.video.commen.views;

import android.content.Context;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;

import androidx.annotation.NonNull;


import com.xxx.video.R;

import butterknife.BindView;

public class CommonProgressDialog extends BaseDialog {

    @BindView(R.id.pb_common_progressbar)
    ProgressBar pbCommonProgressbar;
    @BindView(R.id.tv_common_progress_dialog_msg)
    TextView tvCommonProgressDialogMsg;

    public CommonProgressDialog(@NonNull Context context) {
        super(context);
    }

    public static CommonProgressDialog makeDialog(Context context, String msg) {
        CommonProgressDialog myDialog = new CommonProgressDialog(context);
        myDialog.setMsg(msg);
        return myDialog;
    }

    /**
     * set msg
     * @param msg msg
     */
    public void setMsg(String msg) {
        tvCommonProgressDialogMsg.setText(msg);
    }
    @Override
    public int getContentLayout() {
        return R.layout.dialog_common_progress;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initView(View view) {

    }
}
